package define.Demo_02.Car;

public class Cars {
    //id
    private String id;
    //品牌
    private String brand;
    //价格
    private double price;
    //颜色
    private String color;
    //构造方法
    public Cars() {
        this.id = "001";
        this.brand = "BMW";
        this.price = 500000;
        this.color = "Black";
    }
    public Cars(String id, String brand, double price, String color) {
        this.id = id;
        this.brand = brand;
        this.price = price;
        this.color = color;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
}
